package com.ny.mapper;

import com.ny.entity.Reservations;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReservationMapper {
    void addReservation(Reservations reservation);

    //管理员查询所有预约信息
    List<Reservations> findAllReservations();

    //管理员审批
    void updateReservationStatus(@Param("reservationId") int reservationId,
                                 @Param("status") String status,
                                 @Param("rejectReason") String rejectReason);
}
